package cn.ztf.zshop.security.admin.service;

import cn.ztf.zshop.security.admin.dto.PermissionDto;

import java.util.List;

public interface SysUserSecurityService {
    /**
     * 根据角色id查询权限code
     * @param roleId
     * @return
     */
    List<String> findPermissionByRoleId(String roleId);

    /**
     * 根据用户id查询角色id
     * @param loginId
     * @return
     */
    List<String> findRoleByUserId(Object loginId);


    List<PermissionDto> findAllPermission();
}
